package com.coocaa.ops.api.v1.content.mapper;

import com.coocaa.ops.common.core.biz.plugin.entity.PluginInfoEntity;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author tangminghong
 * @date 2020-07-10
 */
public interface IPluginMapper {

    PluginInfoEntity queryPluginInfo(@Param("id") Integer id);

    /**
     * 返回map，以插件id为key，插件内容为value
     * @param idList
     * @return
     */
    @MapKey("id")
    Map<Integer, PluginInfoEntity> queryPluginInfoMap(@Param("idList") Integer idList);
}
